home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Utilities / Calc / version.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-24  |  531 b   |  24 lines  |  [TEXT/????]

  1. /*
  2.  * Copyright (c) 1992 David I. Bell
  3.  * Permission is granted to use, distribute, or modify this source,
  4.  * provided that this copyright notice remains intact.
  5.  *
  6.  * version - determine the version of calc
  7.  */
  8.  
  9. #include <stdio.h>
  10.  
  11. #define MAJOR_VER 1    /* major version */
  12. #define MINOR_VER 24    /* minor version */
  13. #define PATCH_LEVEL 7    /* patch level */
  14.  
  15. void
  16. version(stream)
  17.     FILE *stream;    /* stream to write version on */
  18. {
  19.     fprintf(stream, "calc version: %d.%d.%d\n", 
  20.         MAJOR_VER, MINOR_VER, PATCH_LEVEL);
  21. }
  22.  
  23. /* END CODE */
  24.